<?php
	$help_articles = array
	(
		'articles'=>array
		(
			'1'=>array
			(
				'title'=>ucfirst(LANG_CONTROLLER),
				'description'=>'Controllers are used for interaction between Views and <a href="/guide/viewModel/">Models</a>. Each controller class has the following variables.',
				'items'=>array
				(
					'6' => array
					(
						'title'=>'$name',
						'text'=>'<u>Description:</u> Controller name.<br />
								<u>Default:</u> -.',
					),
					'1' => array
					(
						'title'=>'$page_title',
						'text'=>'<u>Description:</u> Page title that will be displayed as the title in the browser header/<br />
								<u>Default:</u> ""',
					),			
					'2' => array
					(
						'title'=>'$layout',
						'text'=>'<u>Description:</u> Layout for the page.<br />
								<u>Values:</u> One of the layout names from the /app/themes/[current_theme]/layouts/ folder.<br />
								<u>Default:</u> -',
					),
					'3' => array
					(
						'title'=>'$module',
						'text'=>'<u>Description:</u> Application module name.<br />
								<u>Values:</u> One of the module names from the $global array in the /app/includes/elements/menus.php.<br />
								<u>Default:</u> -',
					),
					'4' => array
					(
						'title'=>'$helpers',
						'text'=>'<u>Description:</u> helpers array. Defines what helpers will be used in the controller<br />
								<u>Values:</u> Helper names\' array from /app/includes/helpers/ folder. 
								Each element can have condition in which action it should be used (by default is loaded for all actions).
								Conditions are separated by "|". "^" after the separator means "not".<br />
								E.g. "public $helpers = array (\'html\', \'htmlx\', \'toolbars\', \'blank|edit\', \'grids|^add\');"<br />
								<u>Default:</u> -',
					),
					'5' => array
					(
						'title'=>'$components',
						'text'=>'<u>Description:</u> components array. Defines what components will be used in this controller<br />
								<u>Values:</u> Components names\' array from /app/includes/components<br />
								Each element can have condition in which action it should be used (by default is loaded for all actions).
								Conditions are separated by "|". "^" after the separator means "not".<br />
								E.g. "public $components = array (\'graph/jpgraph|viewgraphics\', \'graph/jpgraph_pie|viewgraphics\', \'graph/jpgraph_pie3d|viewgraphics\');"<br />
								<u>Default:</u> -',
					),
					'7' => array
					(
						'title'=>'$javascript',
						'text'=>'<u>Description:</u> javascript files array. Defines what javascript files will be used in this controller<br />
								<u>Values:</u> Javascript files names\' array from /app/includes/js<br />
								Each element can have condition in which action it should be used (by default is loaded for all actions).
								Conditions are separated by "|". "^" after the separator means "not".<br />
								E.g. "public $javascript = array(\'windows\', \'calendar|edit|view\', \'calendar/popup_lib|edit|view\');"<br />
								<u>Default:</u> -',
					),
					'9' => array
					(
						'title'=>'$checkAccess',
						'text'=>'<u>Description:</u> Defines whether to check access on the pages related to the controller (is used only when the $use_table_access is set to true in the config.php file).<br />
								<u>Values:</u> true/false<br />
								<u>Default:</u> true',
					),
					'10' => array
					(
						'title'=>'$isCached',
						'text'=>'<u>Description:</u> Defines whether to implement caching mechanism on the pages related to the controller (is used only when the $use_caching is set to true in the config.php file).<br />
								<u>Values:</u> true/false<br />
								<u>Default:</u> true',
					),
					'11' => array
					(
						'title'=>'$use_logging',
						'text'=>'<u>Description:</u> Defines whether to use logging on the pages related to the controller (is used only when the $use_system_logger is set to true in the config.php file).<br />
								<u>Values:</u> true/false<br />
								<u>Default:</u> true',
					),
					'8' => array
					(
						'title'=>'$ignore_columns_permissions',
						'text'=>'<u>Description:</u> Defines whether to ignore columns\' permissions control or not.<br />
								<u>Values:</u> true/false<br />
								<u>Default:</u> false.',
					),
				)
			),
			
		)
	);
	
	$this->helpers->htmlx->MenuText1(LANG_CONTROLLER.': '.LANG_GUIDE, "view.gif");
	$this->helpers->help->HelpTable($help_articles);
?>
